# @Version        : 1.0
# @Update Time    : 2024/12/8 15:46
# @File           : resource_model.py
# @IDE            : PyCharm
# @Desc           : 资源管理模型
from advanced_alchemy.base import BigIntAuditBase
from sqlalchemy import String
from sqlalchemy.orm import Mapped, mapped_column


class SysResource(BigIntAuditBase):
    """
    资源管理模型
    """

    __tablename__ = "sys_resource"
    __table_args__ = {"comment": "资源管理"}

    filename: Mapped[str] = mapped_column(String(64), comment="资源源名称")
    url: Mapped[str] = mapped_column(String(255), comment="资源源URL")
    file_type: Mapped[str] = mapped_column(String(64), comment="资源类型")
